package com.stox.model.entity;

import java.io.Serializable;

import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Entity
@Cacheable
@NoArgsConstructor
@AllArgsConstructor
@Table(name="EXCHANGE")
public class ExchangeEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	@Id
	private String code;
	
	private String name;
	
	@ManyToOne(fetch=FetchType.EAGER)
	private CountryEntity country;
	
}
